package com.demo.unittest.springweb.bean;

/**
 * @author tzp
 * @since 2018/4/28
 */
public class JSONResponse {
    private int code;
    private String msg;
    private Object data;

    public JSONResponse(int code, String msg, Object data) {
        this.code = code;
        this.msg = msg;
        this.data = data;
    }

    public int getCode() {
        return code;
    }

    public JSONResponse setCode(int code) {
        this.code = code;
        return this;
    }

    public String getMsg() {
        return msg;
    }

    public JSONResponse setMsg(String msg) {
        this.msg = msg;
        return this;
    }

    public Object getData() {
        return data;
    }

    public JSONResponse setData(Object data) {
        this.data = data;
        return this;
    }
}
